package com.da.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.da.auth.entity.DailyUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-01-10
 * @Version: 1.0
 */
@Mapper
public interface DailyUsersMapper extends BaseMapper<DailyUsers> {

    List<DailyUsers> selectPage(@Param("offset") int offset, @Param("pageSize") int pageSize);

    int selectCount();

    int createDailyUser(@Param("dailyUsers") DailyUsers dailyUsers);

    int queryCountyByUserName(@Param("field") String field);

    int batchInsert(@Param("batchList") List<DailyUsers> batchList);

    int queryByEmail(@Param("email") String email);

    DailyUsers queryByUserName(@Param("username") String username);


}
